
export interface SpuVO {
  id?: number,
  spuName?: string,
  description?: string,
  category3Id?: number,
  tmId?: number,
  spuSaleAttrList?: SpuSaleAttrList,
  spuImageList?: SpuImageList,
}
export type SpuList = SpuVO[];


//  销售属性对象ts类型
export interface SpuSaleAttrVO {
  id?: number,
  spuId?: number,
  baseSaleAttrId?: number,
  saleAttrName?: string,
  spuSaleAttrValueList?: SpuSaleAttrValueList,
  flag?: boolean,
  saleAttrValue?: string,
  // 临时收集销售属性和属性值的关系
  saleIdAndValueId?: string
}
export type SpuSaleAttrList = SpuSaleAttrVO[];

// 已有的销售属性值对象ts类型
export interface SpuSaleAttrValueVO {
  id?: number,
  spuId?: number,
  baseSaleAttrId?: number,
  saleAttrValueName?: string,
  saleAttrName?: string
  isChecked?: boolean
}

export type SpuSaleAttrValueList = SpuSaleAttrValueVO[]
// 商品图片的ts类型
export interface SpuImageVO {
  id?: number,
  spuId?: number,
  imgName?: string,
  imgUrl?: string,
  productImgId?: number,
  isDefault?: false
  name?: string,
  url?: string,
}
export type SpuImageList = SpuImageVO[];

// 已有的全部SPU的返回数据ts类型
export interface SaleAttrVO {
  id?: number,
  name?: string,
}
export type SaleAttrList = SaleAttrVO[]